Skip to main content

XPDFViewer_Open

Type​

command

Summary​

Create a named PDF Viewer associated with a specific stack window.

Syntax​

XPDFViewer_Open <viewerName>, <stackWindowId>

Description​

The following errors may be thrown by the command:

  • XPDF_ERROR: incorrect number of parameters
  • XPDF_ERROR: PDF viewer with that name exists

Parameters​

NameTypeDescription

viewerName

string

The name of the viewer to use in subsequent commands.

stackWindowId

integer

This is the windowId property of the stack to display the PDF view on. The parameter is optional or 0 may be passed to enable opening a PDF to extract text without creating a view on a stack.

Examples​

XPDFViewer_Open "Document1", the windowID of this stack

Compatibility and Support​

Introduced

LiveCode 1.0.0

OS

mac

windows

Platforms

desktop

Thank you for your feedback!

Was this page helpful?